home *** CD-ROM | disk | FTP | other *** search
- echo off
- rem ASM2EXE filename [options|libname]
- if .%1 == . goto nosource
- if exist %1 goto bad-ext
- if not exist %1.asm goto nofile
- masm %1 %1 %1 nul /N
- if errorlevel 1 goto endall
- rem echo Ctrl-C to skip LINK
- rem pause
- if exist %2.lib goto uselib
- link %1,%1,nul,nul %2
- goto wrapup
- :uselib
- link %1,%1,nul,%2
- :wrapup
- erase %1.obj
- goto endall
- :nosource
- echo No source file specified...
- goto endall
- :bad-ext
- echo ".ASM" must NOT be specified
- goto endall
- :nofile
- echo Source file does not exist
- :endall
- echo on